package cn.huiyunche.base.service.enums;

/**
 * The enum Tms url type enum.
 */
public enum TmsUrlTypeEnum {

    /**
     * Pull import tms url type enum.
     */
    PULL_IMPORT(10, "导入"),
    /**
     * Push plan tms url type enum.
     */
    PUSH_DISTRIBUTABLE_INFO(20, "推送派单"),
    /**
     * Push driver location tms url type enum.
     */
    PUSH_DRIVER_LOCATION(30, "推送司机实时位置"),

    /**
     * Push arrival confirmation tms url type enum.
     */
    PUSH_ARRIVAL_CONFIRMATION(40, "推送订单到达信息"),
    /**
     * Pull order confirm tms url type enum.
     */
    PULL_ORDER_CONFIRM(50, "回单确认"),

    /**
     * 确认发车
     */
    PULL_ORDER_DEPARTURE(60, "确认发车"),

    /**
     * 取消订单
     */
    PULL_ORDER_CANCEL(70, "取消订单"),

    /**
     * 更新价格
     */
    PULL_ORDER_OFFLINE(80, "更新价格"),

    /**
     * 查询订单状态
     */
    PULL_ORDER_HISTORY(90, "查询订单状态"),

    /**
     * 查询tms账单
     */
    PULL_ORDER_BILL(100, "查询tms账单"),

    /**
     * 查询tms账单
     */
    PUSH_ORDER_PRICE(110, "推送价格到tms"),

    /**
     * 查询单条tms订单
     */
    PULL_SINGLE_ORDER(120,"查询单条tms订单"),


    /**
     * 查询tms订单号
     */
    PULL_ORDER_NO(130,"抓取tms订单号"),

    /**
     * 删除订单
     */
    DELETE_ORDER(140,"删除tms订单号");


    private final int value;
    private final String text;

    TmsUrlTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public int getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value tms url type enum.
     *
     * @param value the value
     * @return the tms url type enum
     */
    public static TmsUrlTypeEnum getByValue(int value) {
        for (TmsUrlTypeEnum temp : TmsUrlTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
